#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include <assert.h>
using namespace std;

#define N 10

typedef struct arrary
{
	int a[N] = {1};
	int size;
}AY;

int& PosAt(AY& ay, int i)
{
	assert(i < N);

	return ay.a[i];
}

int main()
{

	AY ay;
	for (int i = 0; i < N; i++)
	{
		PosAt(ay, i) = i * 10;
	}
	for (int i = 0; i < N; i++)
	{
		cout << PosAt(ay, i) << endl;
	}
	cout << endl;

	return 0;
}